package top.minishow.pdf;

import com.alibaba.fastjson.JSONObject;
import org.dom4j.DocumentException;
import top.minishow.pdf.utils.XmltoJson;

public class XmlTest {
    public static void main(String[] args) throws DocumentException {
        String XmlStr = "<ns0:MT_HK001A_REQ_KYE xmlns:ns0=\"http://quectel.com/kd100\">\n" +
                "   <waybillNumbers>80009802184</waybillNumbers>\n" +
                "   <waybillNumbers>80009802186</waybillNumbers>\n" +
                "   <timeStamp>20210818115710</timeStamp>\n" +

                "</ns0:MT_HK001A_REQ_KYE>";
        final JSONObject jsonObject = XmltoJson.xml2Json(XmlStr);
        System.out.println(jsonObject);
    }
}
